<h1>Docker rmi 命令</h1>
<p><strong>docker rmi : </strong>删除本地一个或多少镜像。</p>
<h3>语法</h3>
<pre><code class="language-Docker">docker rmi [OPTIONS] IMAGE [IMAGE...]</code></pre>
<p>OPTIONS说明：</p>
<ul>
<li><p><strong>-f :</strong>强制删除；</p><p></p></li>
<li><p><strong>--no-prune :</strong>不移除该镜像的过程镜像，默认移除；</p><p></p></li>
</ul>
<h3>实例</h3>
<p>强制删除本地镜像runoob/ubuntu:v4。</p>
<pre><code class="language-Docker">root@runoob:~# docker rmi -f runoob/ubuntu:v4

Untagged: runoob/ubuntu:v4

Deleted: sha256:1c06aa18edee44230f93a90a7d88139235de12cd4c089d41eed8419b503072be


</code></pre>
